<template>
  <div class="box">
    {{ num }}
    <Digui :num="num - 1" v-if="num > 0" />
  </div>
</template>

<script>
export default {
  name: "Digui",
  props: ["num"],
};
</script>

<style lang="less" scoped>
.box {
  margin: 3px;
  padding: 3px;
  border: ipx solid pink;
}
</style>